// 添加窗口
let windowShowButton = document.querySelector('.add_data_button')
let windowPanel = document.querySelector('.panel')
let panelCancel = document.querySelector('.panel_cancel')

windowShowButton.addEventListener('click', () => {
    toggleClass(windowPanel, 'panel_show')
})

panelCancel.addEventListener('click', e => {
    // 取消按钮的默认事件
    e.preventDefault()
    removeClass(windowPanel, 'panel_show')
})
